//
//  AppDelegate.h
//  SelfDriving
//
//  Created by apple on 15/8/25.
//  Copyright (c) 2015年 apple. All rights reserved.
//



//#import <Photos/Photos.h>
#import "ThinkChat.h"
#import "WTStatusBar.h"
//#import <BaiduMapAPI_Base/BMKMapManager.h>//引入base相关所有的头文件
//#import <BaiduMapAPI_Location/BMKLocationService.h>
#import <UIKit/UIKit.h>
#import "ECDeviceHeaders.h"
#import "DeviceDelegateHelper.h"
#import <UMSocialCore/UMSocialCore.h>
 
  typedef enum : NSInteger {
    
    kCameraMoveDirectionNone,
    
    kCameraMoveDirectionUp,
    
    kCameraMoveDirectionDown,
    
    kCameraMoveDirectionRight,
    
    kCameraMoveDirectionLeft
    
} CameraMoveDirection ;

@interface AppDelegate : UIResponder <UIApplicationDelegate,ThinkChatDelegate>{
    NSMutableArray* prepSendList;
    int             countSend;
//    PHFetchResult *fetchResult;
 }


@property (nonatomic,strong)UITabBarController *_tableBarController;
@property (strong, nonatomic) UIWindow *window;
@property(strong,nonatomic)NSMutableArray *emojiItems;//表情组
@property(strong,nonatomic)NSString *txl;
@property(nonatomic,strong)LoginResponseModel* user;
@property(nonatomic,strong)LoginResponseModel* gxuser;

@property (assign, nonatomic) BOOL shouldChangeOrientation;

@property(strong,nonatomic)NSMutableDictionary *hbdic;//红包数组
@property(assign,nonatomic)int sptype;//聊天录制视频or快拍视频
@property(assign,nonatomic)BOOL dtcoles;//动态拍照返回关闭当前界面

@property(assign,nonatomic)BOOL islod;

@property(assign,nonatomic)int isfollowvc;


@property(assign,nonatomic)int dttype;//动态拍摄返回重置界面，1，照片2，拍摄3，视频

@property (nonatomic,strong) NSMutableArray *imagData;

@property (nonatomic,strong) NSMutableArray *imagData1;

@property(assign,nonatomic)BOOL isdeleteAd;//是否删除广告
@property(assign,nonatomic)BOOL Close;//视频照片发布成功后关闭界面
@property(strong,nonatomic)NSString *meetingNum;
@property(assign,nonatomic)BOOL isScollBack;//不使用滑动返回（yes 不使用 no 使用）
@property(assign,nonatomic)BOOL *xzr;
@property (strong, nonatomic) UIImage *photoimg;
@property (strong, nonatomic) UIImage *Videoimg;


@property (assign,nonatomic) CGFloat swhidth;
@property (assign,nonatomic) CGFloat sheigt;

@property (assign,nonatomic) NSInteger allowRotate;

//xhw2018-2-9加
@property (nonatomic,assign)BOOL isOpenRemoteAlert; //是否开启新消息提醒
@property (nonatomic,assign)BOOL isOpenRemoteVoice; //是否开启新消息声音
@property (nonatomic,assign)BOOL isOpenRemoteShake; //是否开启新消息震动


- (void)xhwcanPlaySound;
+ (instancetype)shareDelegate;
+(AppDelegate*)sharedInstance;
-(void)loginECLoginInfo:(NSString *)uid;

-(void)initbar;
- (void)userDidLogin:(NSString *)ID pwd:(NSString *)pwd;
- (void)sendMessage:(TCMessage*)msg;
- (void)clearSessionID:(NSString *)sid typeChat:(ChatType)typeChat;
//刷新是否有新消息UI
-(void)showMsgCount;
-(void)refdata:(void (^)(id))success;
-(void)refuser:(NSString *)uid success:(void (^)(id as))success;
-(void)shareTextToPlatformType:(UMSocialPlatformType)platformType;
- (NSString *)getNetWorkStates;

@end

